class Solution {
    public boolean isPalindrome(int x) {
        //注意，需要吧Integer 转换成String，
        //才可以有方法的toString(),length()和charAt
        if (x<0) return false;
        if (x<10) return true;
        String s =Integer.toString(x);
        int len=s.length();
        int right = len-1;
        int left = 0;
        while (right>=left){
            if(s.charAt(left++)!=s.charAt(right--)){
                return false;
            }
        }
        return true;
    }
}

public class MainClass {
    public static String booleanToString(boolean input) {
        return input ? "True" : "False";
    }
    
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = in.readLine()) != null) {
            int x = Integer.parseInt(line);
            
            boolean ret = new Solution().isPalindrome(x);
            
            String out = booleanToString(ret);
            
            System.out.print(out);
        }
    }
}